const channeList = (set) => {
	return {
		// *** 状态数据 ***
		channeList: [],

		// *** 状态更新 ***
		fetchGetList: async () => {
			const res = await fetch('http://geek.itheima.net/v1_0/channels')
			const data = await res.json()
			set({ channeList: data.data.channels })
		},
	}
}

export default channeList
